//
//  UIView+ZCHelp.h
//  UniversalApp
//
//  Created by 凯朱 on 2019/5/31.
//  Copyright © 2019 徐阳. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (ZCHelp)
+(instancetype)viewFromXIB;
-(void)setTextFieldPlaceholdarWithStr:(NSString *)placeholdar textColor:(UIColor *)textColor font:(UIFont *)font;

//添加竖向渐变色
-(void)addPortColorWithStart:(UIColor *)startColor endColor:(UIColor *)endColor frame:(CGRect)frame;

-(CAGradientLayer *)addLandColorWithStart:(UIColor *)startColor endColor:(UIColor *)endColor frame:(CGRect)frame;

/**
 * 设置视图的任意角度圆角
 *
 * @param radius     圆角半径
 * @param corners    需要设置圆角的角
 */
- (void)setRoundedCorners:(CGFloat)radius forCorners:(UIRectCorner)corners frame:(CGRect)frame;

-(void)removeWithAnimation;
-(void)showWithAnmation:(UIView *)onView;
@end

NS_ASSUME_NONNULL_END
